package com.k.demo.entity;

public class Food {
	
	
	public Food(String food_name, Integer food_kind_id) {
		super();
		this.food_name = food_name;
		this.food_kind_id = food_kind_id;
	}


	//先上传图片，上传之后获得路径的返回值，建路径赋值之后插入数据库
	public Food(String food_name, Double food_price, Integer food_remain_number, String food_weight,
			String food_depiction, Double food_discount, String food_img, Integer food_kind_id) {
		super();
		this.food_name = food_name;
		this.food_price = food_price;
		this.food_remain_number = food_remain_number;
		this.food_weight = food_weight;
		this.food_depiction = food_depiction;
		this.food_discount = food_discount;
		this.food_img = food_img;
		this.food_kind_id = food_kind_id;
	}


	//照片前端也是需要传的，但是和数据分开，可参考发表评论
	


	private Integer food_id;
	private String food_name;
	private Double food_price;
	private Integer food_remain_number;
	private Double good_frequency;
	private String food_weight;
	private String food_time;
	private String food_depiction;
	private Double food_discount;
	private String food_img;
	private Integer food_kind_id;
	private Integer is_delete;
	
	public Food(Integer food_id, String food_name, Double food_price, Integer food_remain_number, Double good_frequency,
			String food_weight, String food_time, String food_depiction, Double food_discount, String food_img,
			Integer food_kind_id, Integer is_delete) {
		super();
		this.food_id = food_id;
		this.food_name = food_name;
		this.food_price = food_price;
		this.food_remain_number = food_remain_number;
		this.good_frequency = good_frequency;
		this.food_weight = food_weight;
		this.food_time = food_time;
		this.food_depiction = food_depiction;
		this.food_discount = food_discount;
		this.food_img = food_img;
		this.food_kind_id = food_kind_id;
		this.is_delete = is_delete;
	}

	
	public Food() {
		super();
	}


	@Override
	public String toString() {
		return "Food [food_id=" + food_id + ", food_name=" + food_name + ", food_price=" + food_price
				+ ", food_remain_number=" + food_remain_number + ", good_frequency=" + good_frequency + ", food_weight="
				+ food_weight + ", food_time=" + food_time + ", food_depiction=" + food_depiction + ", food_discount="
				+ food_discount + ", food_img=" + food_img + ", food_kind_id=" + food_kind_id + ", is_delete="
				+ is_delete + "]";
	}


	public Integer getFood_id() {
		return food_id;
	}


	public void setFood_id(Integer food_id) {
		this.food_id = food_id;
	}


	public String getFood_name() {
		return food_name;
	}


	public void setFood_name(String food_name) {
		this.food_name = food_name;
	}


	public Double getFood_price() {
		return food_price;
	}


	public void setFood_price(Double food_price) {
		this.food_price = food_price;
	}


	public Integer getFood_remain_number() {
		return food_remain_number;
	}


	public void setFood_remain_number(Integer food_remain_number) {
		this.food_remain_number = food_remain_number;
	}


	public Double getGood_frequency() {
		return good_frequency;
	}


	public void setGood_frequency(Double good_frequency) {
		this.good_frequency = good_frequency;
	}


	public String getFood_weight() {
		return food_weight;
	}


	public void setFood_weight(String food_weight) {
		this.food_weight = food_weight;
	}


	public String getFood_time() {
		return food_time;
	}


	public void setFood_time(String food_time) {
		this.food_time = food_time;
	}


	public String getFood_depiction() {
		return food_depiction;
	}


	public void setFood_depiction(String food_depiction) {
		this.food_depiction = food_depiction;
	}


	public Double getFood_discount() {
		return food_discount;
	}


	public void setFood_discount(Double food_discount) {
		this.food_discount = food_discount;
	}


	public String getFood_img() {
		return food_img;
	}


	public void setFood_img(String food_img) {
		this.food_img = food_img;
	}


	public Integer getFood_kind_id() {
		return food_kind_id;
	}


	public void setFood_kind_id(Integer food_kind_id) {
		this.food_kind_id = food_kind_id;
	}


	public Integer getIs_delete() {
		return is_delete;
	}


	public void setIs_delete(Integer is_delete) {
		this.is_delete = is_delete;
	}
	
	
	
	
}
